package com.example.orderservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.orderservice.pojo.po.OrderPO;
import com.example.orderservice.pojo.vo.OrderVO;

import java.util.List;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2023/4/11 17:45
 * @Description //TODO
 */

public interface OrderService {
    OrderPO selectOneById(String id);
    OrderPO add(OrderVO orderVO);
    OrderVO selectOneByIdReturnVO(String id);
    OrderPO save(OrderVO orderVO);
    Integer deleteById(String id);
    OrderVO saveone(OrderVO orderVO);
    Page<OrderVO> getPage(OrderVO orderVO);
    OrderVO addOne(OrderVO orderVO);
    List<OrderVO> getAllList(OrderVO orderVO);
    void randomOrder();

    OrderVO createNewOrder(OrderVO orderVO);

    String cancelOrder(String id);

    Page<OrderVO> my(OrderVO orderVO);

    List<OrderVO> count(OrderVO orderVO);

    void payOrder(String orderId,String walletPwd);

    //    暂时注释支付宝相关代码
    String prePayOrderForAlipay(String orderId) throws Exception;

    Boolean checkPayOrderForAlipay(String orderId) throws Exception;

    String cancelOrderForAlipay(String orderId) throws Exception;
}
